import { E_BattleUnitAttr } from "./BattleConst";
import BattleUnitBase from "./core/BattleUnitBase";
import SkillBase from "./core/SkillBase";

/**
 * 战斗单位
 */
export default class BattleUnit extends BattleUnitBase {
    /**
     *  用于战斗单位外形
     */
    id: string
    isAlive(): boolean {
        return true;
    }

    onCombatStart(): void {

    }

    onRoundBegin(): void {

    }

    onRoundEnd(): void {

    }

    startAction(): void {

    }

    hurt(damage: number) {
        this.attrMgr.addAttr(E_BattleUnitAttr.HP, -damage);
    }

    cutShield(num: number) {
        this.attrMgr.addAttr(E_BattleUnitAttr.SHIELD, -num);
    }
}